<table xmlns="http://www.w3.org/1999/xhtml" 
       xmlns:py="http://genshi.edgewall.org/"
       id="${id}" class="${css_class}"
       py:attrs="table_attrs">
    <thead>
        <tr>
            <th py:for="i, label in enumerate(labels)" 
                class="label_${i}"
                py:content="label"/>
            <th py:if="error" />
        </tr>     
    </thead>
    <tbody py:content="display_child('row')" />
</table>
